<?php
defined ( 'IN_ADMIN' ) or exit ( 'No permission resources.' );
$show_dialog = 1;
include $this->admin_tpl ( 'header', 'admin' );
?>
<script>
function mScroll(id){
	$("html,body").stop(true);
	$("html,body").animate({scrollTop: $("#"+id).offset().top}, 1000);
	} 
</script>
<div class="content-menu ib-a blue line-x">
	&nbsp;&nbsp;&nbsp;&nbsp;
	<a class="add" href="#" onclick="mScroll('science_man')"><em>科技园区信息管理 </em> </a>
	<a class="add" href="#" onclick="mScroll('train_man')"><em>培训咨询信息管理 </em> </a>
	<a class="add" href="#" onclick="mScroll('ec_man')"><em>电商平台信息管理</em> </a>
	<a class="add" href="#" onclick="mScroll('info_man')"><em>信息化服务信息管理</em> </a>
</div>

<form method="post" name="frmlist" action="">
	<div class="table-list">
		<table width="100%" cellspacing="0">
			<thead>
				<tr>
					<th align="left" colspan="6">
						企业服务信息管理
						<?php if(empty($service)){?>
						| 
						<a href="/index.php?m=hchservice&c=crud&a=myadd&assort_type_id=<?php echo $serviceTpyeId;?>">
							<em>新增企业服务信息</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $service ) && count ( $service ) > 0) {
			?>
			<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $service['id']?>"></td>
				<td align="center" width="10%"><?php echo $service['name']?></a></td>
				<td align="center" width="10%"><?php echo $service['title']?></td>
				<td align="center"><?php echo $service['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchservice&c=crud&a=myedit&id=<?php echo $service['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchservice&c=crud&a=myview&id=<?php echo $service['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchservice&c=crud&a=mydelone&id=<?php echo $service['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
		  	<thead>
				<tr>
					<th align="left" colspan="6">
						<label id="science_man" name="science_man">科技园区信息管理</label>
						<?php if(empty( $science )){?>
						| 
						<a href="/index.php?m=hchservice&c=crud&a=myadd&assort_type_id=<?php echo $scienceTpyeId;?>">
							<em>新增科技园区信息</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp;</th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
				if (is_array ( $science ) && count ( $science ) > 0) {
			?>
			<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $science['id']?>"></td>
				<td align="center" width="10%"><?php echo $science['name']?></a></td>
				<td align="center" width="10%"><?php echo $science['title']?></td>
				<td align="center"><?php echo $science['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchservice&c=crud&a=myedit&id=<?php echo $science['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchservice&c=crud&a=myview&id=<?php echo $science['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchservice&c=crud&a=mydelone&id=<?php echo $science['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						<label id="train_man" name="train_man">培训咨询信息管理 </label>
						<a href="/index.php?m=hchservice&c=crud&a=myadd&assort_type_id=<?php echo $trainTpyeId;?>">
							<em>新增培训咨询信息</em>
						</a>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $trainList ) && count ( $trainList ) > 0) {
				foreach ($trainList as $trainItem){
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $trainItem['id']?>"></td>
				<td align="center" width="10%"><?php echo $trainItem['name']?></a></td>
				<td align="center" width="10%"><?php echo $trainItem['title']?></td>
				<td align="center"><?php echo $trainItem['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchservice&c=crud&a=myedit&id=<?php echo $trainItem['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchservice&c=crud&a=myview&id=<?php echo $trainItem['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchservice&c=crud&a=mydelone&id=<?php echo $trainItem['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}	
			}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						<label id="ec_man" name="ed_man">电商平台信息管理</label>
						<?php if(empty($ECommerce)){?>
						| 
						<a href="/index.php?m=hchservice&c=crud&a=myadd&assort_type_id=<?php echo $ECommerceTpyeId;?>">
							<em>新增电商平台信息</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $ECommerce ) && count ( $ECommerce ) > 0) {
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $ECommerce['id']?>"></td>
				<td align="center" width="10%"><?php echo $ECommerce['name']?></a></td>
				<td align="center" width="10%"><?php echo $ECommerce['title']?></td>
				<td align="center"><?php echo $ECommerce['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchservice&c=crud&a=myedit&id=<?php echo $ECommerce['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchservice&c=crud&a=myview&id=<?php echo $ECommerce['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchservice&c=crud&a=mydelone&id=<?php echo $ECommerce['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<thead>
				<tr>
					<th align="left" colspan="6">
						<label id="info_man" name="info_man">信息化服务信息管理</label>
						<?php if(empty($information)){?>
						| 
						<a href="/index.php?m=hchservice&c=crud&a=myadd&assort_type_id=<?php echo $informationTpyeId;?>">
							<em>新增信息化服务信息</em>
						</a>
						<?php }?>
					</th>
				</tr>
				<tr>
					<th width="30" align="center">&nbsp; </th>
					<th align="center">名称</th>
					<th align="center">标题</th>
					<th align="center">内容摘要</th>
					<th align="center">管理操作</th>
				</tr>
			</thead>
			<?php
			if (is_array ( $information ) && count ( $information ) > 0) {
			?>
          	<tr>
				<td align="center" width="35"><input type="checkbox" name="id[]"
					value="<?php echo $information['id']?>"></td>
				<td align="center" width="10%"><?php echo $information['name']?></a></td>
				<td align="center" width="10%"><?php echo $information['title']?></td>
				<td align="center"><?php echo $information['short_content'];?></td>
				<td align="center" width="10%"><a
					href='/index.php?m=hchservice&c=crud&a=myedit&id=<?php echo $information['id'] ?>'>编辑</a>
					| <a
					href="/index.php?m=hchservice&c=crud&a=myview&id=<?php echo $information['id'] ?>">查看</a>
					| <a
					href="/index.php?m=hchservice&c=crud&a=mydelone&id=<?php echo $information['id'] ?>"
					onclick="return confirm('确认删除记录吗？')">删除</a></td>
			</tr>
			<?php
				}else{
			?>
			<tr>
				<td align="center"colspan="5">没有查询到数据。</td>
			</tr>
			<?php }?>
			<tr>
				<td colspan="10"><input type="submit" class="button"
					name="submitdel" onClick="doDel()" value="删除" /></td>
			</tr>
			</tbody>
		</table>
	</div>
</form>
</body>
<script type="text/javascript">
function doDel(){
	if(confirm('确认删除记录吗？')){
		document.frmlist.action='/index.php?m=hchservice&c=crud&a=mydel';
		submitchk.submit();
	}
}
</script>
</html>